package book;

public class BookList {
    private Book[] books;
    private int UsedSize;
    public BookList() {
        this.books = new Book[6];
        books[0] = new Book("西游记","吴承恩",15,"小说");
        books[1] = new Book("三国演义","罗贯中",16,"小说");
        books[2] = new Book("三体","刘欣慈",30,"科幻小说");
        this.UsedSize = 3;

    }

    public void setUsedSize(int usedSize) {
        this.UsedSize = usedSize;
    }

    public Book getBook(int index) {
        return this.books[index];
    }

    public Book[] getBooks() {
        return books;
    }

    public int getUsedSize() {
        return UsedSize;
    }
}
